<%@ Page Title="" Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="SearchSalesQuatation.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.SalesQuotations.SearchSalesQuatation" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="../UserControls/UCGrid.ascx" tagname="UCGrid" tagprefix="uc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


 
<script type="text/javascript" language="javascript">

    window.onload = function() {

        var msg = document.getElementById('ctl00_MasterMsg');
        if (msg && msg.innerHTML != '')
            showMessageBlock();

    }
</script>

 <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />




    




</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table   >
        <tr>
            <td >
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
                </td>
        </tr>
        
        <tr>
            <td >
            <table  >
        
        <tr>
            <td height="5" class="style8">
                &nbsp;</td>
            
        </tr>
        <tr>
            <td class="style8" >
                <asp:Label ID="lblQuotationNo" runat="server" Text="Quotation No:" 
                    CssClass="lbl1"></asp:Label>
            </td>
            <td class="style7" >
                <asp:TextBox ID="txtQuotNo" runat="server"  CssClass="txtbox"></asp:TextBox>
            </td>
            <td class="style9" >
                <asp:Label ID="lblBranchCode" runat="server" Text="Branch Code *:" 
                    CssClass="lbl1" ></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpBranch" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="drpBranch_SelectedIndexChanged"  CssClass="ddl">
                    <asp:ListItem Value="0">Select...</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style8" >
                <asp:Label ID="lblFromDate" runat="server" Text="From Date *" CssClass="lbl1"></asp:Label>
                :</td>
            <td class="style7" >
                <asp:TextBox ID="txtFromDate" runat="server"  CssClass="txtbox"></asp:TextBox>
                <asp:Image ID="Image7" runat="server" ImageUrl="~/images/calander.jpg" />
                
                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFromDate" PopupButtonID="Image7" Format="dd/MM/yyyy">
                </cc1:CalendarExtender>
                
                <asp:RequiredFieldValidator ID="vldFromDate" runat="server" 
                    ControlToValidate="txtFromDate" ErrorMessage="Enter a From Date">*</asp:RequiredFieldValidator>
                
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtFromDate" 
                    ValidationExpression="^([1-9]|0[1-9]|[12][0-9]|3[01])[/.]([1-9]|0[1-9]|1[012])[/.][0-9]{4}$">*</asp:RegularExpressionValidator>
                
            </td>
            <td class="style9" >
                <asp:Label ID="lblUnitCode" runat="server" Text="Unit Code *:" CssClass="lbl1" 
                    style="text-align: left" width="84px"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpUnit" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="drpUnit_SelectedIndexChanged" CssClass="ddl">
                    <asp:ListItem Value="0">Select...</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style8" >
                <asp:Label ID="lblToDate" runat="server" Text="To Date * " CssClass="lbl1"></asp:Label>
                :</td>
            <td class="style7" >
                <asp:TextBox ID="txtToDate" runat="server"  CssClass="txtbox"></asp:TextBox>
                <asp:Image ID="Image8" runat="server" ImageUrl="~/images/calander.jpg" />
                
                <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtToDate" PopupButtonID="Image8" Format="dd/MM/yyyy">
                </cc1:CalendarExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtToDate" ErrorMessage="Enter a To Date">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator3" runat="server" 
                    ControlToCompare="txtFromDate" ControlToValidate="txtToDate" 
                    Operator="GreaterThan" Type="Date">*</asp:CompareValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtToDate" 
                    ValidationExpression="^([1-9]|0[1-9]|[12][0-9]|3[01])[/.]([1-9]|0[1-9]|1[012])[/.][0-9]{4}$">*</asp:RegularExpressionValidator>
            </td>
            <td class="style9" >
                <asp:Label ID="lblSoCode" runat="server" Text="SO Code *:" CssClass="lbl1" 
                    style="text-align: left" width="84px"></asp:Label>
            </td>
            <td >
                <asp:DropDownList ID="drpSOCode" runat="server"  CssClass="ddl">
                    <asp:ListItem Value="0">Select...</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td  height="5" class="style8">
                </td>
            <td  height="5" class="style7">
                &nbsp;</td>
            <td height="5" class="style9">
                </td>
            <td height="5">
                &nbsp;</td>
        </tr>
        
       
    </table>
                </td>
        </tr>
        <tr>
            <td class="style26" >
                <table style="width: 697px" >
                    <tr>
                        <td class="style6">
                            <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" OnClientClick="validationSummery();" 
                                Text="Search" style="margin-left: 0px" CssClass="btn" Width="89px" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
       
        <tr>
            <td class="style16">
                <uc1:UCGrid ID="UCGrid1" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style26">
                <table class="style34">
                    <tr>
                        <td class="style36">
                            <asp:Label ID="lblReportType" runat="server" Text="Select report type:" 
                                Visible="False" CssClass="lbl1"></asp:Label>
                        </td>
                        <td class="style35">
                            <asp:DropDownList ID="drpDownReportType" runat="server" CssClass="ddl">
                                <asp:ListItem Value="0">Select...</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="style26">
                <asp:Button ID="btnView" runat="server" 
                    
                    Text="View" Visible="False" onclick="btnView_Click" CssClass="btn" />
            </td>
        </tr>
        <tr>
            <td class="style26">
                &nbsp;</td>
        </tr>
    </table>
    
</asp:Content>
